package main

import (
	"fmt"
)

//变参
func foreach(arg ...int) {
	for _, v := range arg {
		fmt.Println(v)
	}
}

func main() {
	slic := []int{2, 4, 5, 7, 8, 7, 8}
	foreach(slic...)
}
